Makefile: Fix verbose builds on Windows
authorAntonio Nino Diaz <[email protected]>
Fri, 19 Oct 2018 14:44:30 +0000 (15:44 +0100)
committerAntonio Nino Diaz <[email protected]>
Fri, 19 Oct 2018 14:54:27 +0000 (15:54 +0100)
Commit <ee1ba6d4ddf1> ("Makefile: Support totally quiet output with -s")
broke verbose (V=1) builds on Windows. This patch fixes it by adding
helpers to silence echo prints in a OS-dependent way.

Change-Id: I24669150457516e9fb34fa32fa103398efe8082d
Signed-off-by: Antonio Nino Diaz <[email protected]>
Makefile
make_helpers/unix.mk
make_helpers/windows.mk

index 8cba50cc1651e930d7faaf2e0a4923d6f7f48188..be543facb61ce43e10b4016bb01e44c619ff1238 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -78,12 +78,12 @@ ifeq (${V},0)
         CHECKCODE_ARGS +=      --no-summary --terse
 else
         Q:=
-        ECHO:=@\#
+        ECHO:=$(ECHO_QUIET)
 endif
 
 ifneq ($(findstring s,$(filter-out --%,$(MAKEFLAGS))),)
         Q:=@
-        ECHO:=@\#
+        ECHO:=$(ECHO_QUIET)
 endif
 
 export Q ECHO
index 17f8a7c279c7a6eed1401fb975ad84e7605e08bc..545ddfdea84d15761c1880e231dbb725c0c6d915 100644 (file)
@@ -1,9 +1,8 @@
 #
-# Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved.
+# Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved.
 #
 # SPDX-License-Identifier: BSD-3-Clause
 #
-#
 
 # Trusted Firmware shell command definitions for a Unix style environment.
 
@@ -11,6 +10,7 @@ ifndef UNIX_MK
     UNIX_MK := $(lastword $(MAKEFILE_LIST))
 
     ECHO_BLANK_LINE := echo
+    ECHO_QUIET := @\#
 
     DIR_DELIM := /
     PATH_SEP := :
index 69f6a017158c90e04337dcbc0932a23662760d2b..5ab8bdc4fdc2a60a3260c0e42afaf9079e5a8903 100644 (file)
@@ -1,9 +1,8 @@
 #
-# Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved.
+# Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved.
 #
 # SPDX-License-Identifier: BSD-3-Clause
 #
-#
 
 # OS specific parts for builds in a Windows_NT environment. The
 # environment variable OS is set to Windows_NT on all modern Windows platforms
@@ -14,6 +13,7 @@ ifndef WINDOWS_MK
     WINDOWS_MK := $(lastword $(MAKEFILE_LIST))
 
     ECHO_BLANK_LINE := @cmd /c echo.
+    ECHO_QUIET := @rem
     DIR_DELIM := $(strip \)
     BIN_EXT   := .exe
     PATH_SEP  := ;